package com.team2.s3hrjyxm.dao;
import java.util.List;


import com.team2.s3hrjyxm.pojo.EngageMajorRelease;
import org.apache.ibatis.annotations.Param;
/**
 * EngageMajorRelease的Dao接口
 * 
 * @author 
 *
 */
public interface EngageMajorReleaseDao {

	/**
	 * 获得EngageMajorRelease数据的总行数, ,如果没有条件则传入null
	 * 
	 * @param  
	 * @return
	 */
	long getEngageMajorReleaseRowCount();
	
	 
	
	/**
	 * 获得一个EngageMajorRelease对象,以参数EngageMajorRelease对象中不为空的属性作为条件进行查询,返回符合条件的第一条
	 * 
	 * @param obj
	 * @return
	 */
	EngageMajorRelease selectEngageMajorReleaseObjSingle(EngageMajorRelease obj);
	
	/**
	 * 获得一个EngageMajorRelease对象,以参数EngageMajorRelease对象中不为空的属性作为条件进行查询
	 * 
	 * @param obj
	 * @return
	 */
	List<EngageMajorRelease> selectEngageMajorReleaseByObj(EngageMajorRelease obj);

	/**
	 * 插入EngageMajorRelease到数据库,包括null值
	 * 
	 * @param value
	 * @return
	 */
	int insertEngageMajorRelease(EngageMajorRelease value);
	
	/**
	 * 插入EngageMajorRelease中属性值不为null的数据到数据库
	 * 
	 * @param value
	 * @return
	 */
	int insertNotNullEngageMajorRelease(EngageMajorRelease value);
	
	/**
	 * 批量插入EngageMajorRelease到数据库,包括null值
	 * 
	 * @param value
	 * @return
	 */
	int insertEngageMajorReleaseByBatch(List<EngageMajorRelease> value);
	/**
	 * 通过EngageMajorRelease的id删除EngageMajorRelease
	 * 
	 * @param id
	 * @return
	 */
	int deleteEngageMajorReleaseById(Object id);
	
	 
	
	/**
	 * 通过EngageMajorRelease的id更新EngageMajorRelease中的数据,包括null值
	 * 
	 * @param enti
	 * @return
	 */
	int updateEngageMajorReleaseById(EngageMajorRelease enti);
	
	/**
	 * 通过EngageMajorRelease的id更新EngageMajorRelease中属性不为null的数据
	 * 
	 * @param enti
	 * @return
	 */
	int updateNotNullEngageMajorReleaseById(EngageMajorRelease enti);
	
	 
}